package com.xnfh.equipment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.xnfh.common.bean.KcItemBean
import com.xnfh.equipment.R
import com.xnfh.equipment.databinding.ItemKcEquipmentLayoutBinding

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/12/25 13:59
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/12/25 13:59
 * @UpdateRemark: 更新说明
 */
class KcEquipmentAdapter :
    BaseQuickAdapter<KcItemBean, BaseDataBindingHolder<ItemKcEquipmentLayoutBinding>>(
        R.layout.item_kc_equipment_layout
    ) {
    override fun convert(
        holder: BaseDataBindingHolder<ItemKcEquipmentLayoutBinding>,
        item: KcItemBean
    ) {
        holder.setText(R.id.item_kv_equipment_name, item.gatewayname)
        holder.setText(
            R.id.item_kv_equipment_id,
            context.getString(R.string.equipment_id) + item.gatewayid
        )
    }
}